.TH "QwtDialSimpleNeedle" 3 "Tue Nov 20 2012" "Version 5.2.3" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtDialSimpleNeedle \- 
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_dial_needle\&.h>\fP
.PP
Inherits \fBQwtDialNeedle\fP\&.
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBStyle\fP { \fBArrow\fP, \fBRay\fP }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQwtDialSimpleNeedle\fP (\fBStyle\fP, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor &base=Qt::darkGray)"
.br
.ti -1c
.RI "virtual void \fBdraw\fP (QPainter *, const QPoint &, int length, double direction, QPalette::ColorGroup=QPalette::Active) const "
.br
.ti -1c
.RI "void \fBsetWidth\fP (int \fBwidth\fP)"
.br
.ti -1c
.RI "int \fBwidth\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static void \fBdrawArrowNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int \fBwidth\fP, double direction, bool hasKnob)"
.br
.ti -1c
.RI "static void \fBdrawRayNeedle\fP (QPainter *, const QPalette &, QPalette::ColorGroup, const QPoint &, int length, int \fBwidth\fP, double direction, bool hasKnob)"
.br
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP 
A needle for dial widgets\&. 

The following colors are used:
.IP "\(bu" 2
QColorGroup::Mid
.br
 Pointer
.IP "\(bu" 2
QColorGroup::base
.br
 Knob
.PP
.PP
\fBSee also:\fP
.RS 4
\fBQwtDial\fP, \fBQwtCompass\fP 
.RE
.PP

.SH "Constructor & Destructor Documentation"
.PP 
.SS "QwtDialSimpleNeedle::QwtDialSimpleNeedle (\fBStyle\fPstyle, boolhasKnob = \fCtrue\fP, const QColor &mid = \fCQt::gray\fP, const QColor &base = \fCQt::darkGray\fP)"
Constructor
.PP
\fBParameters:\fP
.RS 4
\fIstyle\fP Style 
.br
\fIhasKnob\fP With/Without knob 
.br
\fImid\fP Middle color 
.br
\fIbase\fP Base color 
.RE
.PP

.SH "Member Function Documentation"
.PP 
.SS "void QwtDialSimpleNeedle::draw (QPainter *painter, const QPoint &center, intlength, doubledirection, QPalette::ColorGroupcolorGroup = \fCQPalette::Active\fP) const\fC [virtual]\fP"
Draw the needle
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter 
.br
\fIcenter\fP Center of the dial, start position for the needle 
.br
\fIlength\fP Length of the needle 
.br
\fIdirection\fP Direction of the needle, in degrees counter clockwise 
.br
\fIcolorGroup\fP Color group, used for painting 
.RE
.PP

.PP
Implements \fBQwtDialNeedle\fP\&.
.SS "void QwtDialSimpleNeedle::drawArrowNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint &center, intlength, intwidth, doubledirection, boolhasKnob)\fC [static]\fP"
Draw a needle looking like an arrow
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter 
.br
\fIpalette\fP Palette 
.br
\fIcolorGroup\fP Color group 
.br
\fIcenter\fP center of the needle 
.br
\fIlength\fP Length of the needle 
.br
\fIwidth\fP Width of the needle 
.br
\fIdirection\fP Current Direction 
.br
\fIhasKnob\fP With/Without knob 
.RE
.PP

.SS "void QwtDialSimpleNeedle::drawRayNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroupcolorGroup, const QPoint &center, intlength, intwidth, doubledirection, boolhasKnob)\fC [static]\fP"
Draw a needle looking like a ray
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter 
.br
\fIpalette\fP Palette 
.br
\fIcolorGroup\fP Color group 
.br
\fIcenter\fP center of the needle 
.br
\fIlength\fP Length of the needle 
.br
\fIwidth\fP Width of the needle 
.br
\fIdirection\fP Current Direction 
.br
\fIhasKnob\fP With/Without knob 
.RE
.PP

.SS "void QwtDialSimpleNeedle::setWidth (intwidth)"
Set the width of the needle 
.PP
\fBParameters:\fP
.RS 4
\fIwidth\fP Width 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBwidth()\fP 
.RE
.PP

.SS "int QwtDialSimpleNeedle::width () const"
\fBReturns:\fP
.RS 4
the width of the needle 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetWidth()\fP 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
